<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
    <div class="ui-g">
        <div class="ui-g-4">
            <div class="ui-g-12"><h3><b>排除地区</b></h3></div>
            <div class="ui-g-12">
                <p:tree id="areaRange" value="#{firstPartyTagInfoBean.areaRegion}" var="region"
                        selectionMode="checkbox"
                        selection="#{firstPartyTagInfoBean.selectedRegionNodes}">
                    <p:treeNode icon="ui-icon-note">
                        <h:outputText value="#{region.name}"/>
                    </p:treeNode>
                </p:tree>
            </div>
        </div>

        <div class="ui-g-8">
            <div class="ui-g-12"><h3><b>基础信息</b></h3></div>
            <div class="ui-g-2"><p:outputLabel for="minAge" value="最小年龄"/></div>
            <div class="ui-g-4">
                <div class="input-group">
                    <p:inputText id="minAge" value="#{firstPartyTagInfoBean.$.applyCondition.basicCondition.minAge}"
                                 disabled="#{firstPartyTagInfoBean.isView()}">
                        <p:keyFilter regEx="/[\d]/"/>
                    </p:inputText>
                    <span class="input-group-addon">岁</span>
                </div>
            </div>
            <div class="ui-g-2"><p:outputLabel for="maxAge" value="最大年龄"/></div>
            <div class="ui-g-4">
                <div class="input-group">
                    <p:inputText id="maxAge" value="#{firstPartyTagInfoBean.$.applyCondition.basicCondition.maxAge}"
                                 disabled="#{firstPartyTagInfoBean.isView()}">
                        <p:keyFilter regEx="/[\d]/"/>
                    </p:inputText>
                    <span class="input-group-addon">岁</span>
                </div>
            </div>
            <div class="ui-g-2"><p:outputLabel for="contacts" value="通讯录人数"/></div>
            <div class="ui-g-4">
                <div class="input-group">
                    <p:inputText id="contacts"
                                 value="#{firstPartyTagInfoBean.$.applyCondition.basicCondition.phoneCount}"
                                 disabled="#{firstPartyTagInfoBean.isView()}">
                        <p:keyFilter regEx="/[\d]/"/>
                    </p:inputText>
                    <span class="input-group-addon">人</span>
                </div>
            </div>
            <div class="ui-g-12"><h3><b>黑名单过滤</b></h3></div>
            <div class="ui-g-2">失信人</div>
            <div class="ui-g-2">
                <p:inputSwitch value="#{firstPartyTagInfoBean.$.applyCondition.blackListCondition.lossOfTrust}"
                               onLabel="开启"
                               offLabel="关闭" disabled="#{firstPartyTagInfoBean.isView()}">
                </p:inputSwitch>
            </div>
            <div class="ui-g-2">被执行人</div>
            <div class="ui-g-2">
                <p:inputSwitch value="#{firstPartyTagInfoBean.$.applyCondition.blackListCondition.executedPerson}"
                               onLabel="开启"
                               offLabel="关闭" disabled="#{firstPartyTagInfoBean.isView()}">
                </p:inputSwitch>
            </div>
            <div class="ui-g-2">公安异常</div>
            <div class="ui-g-2">
                <p:inputSwitch value="#{firstPartyTagInfoBean.$.applyCondition.blackListCondition.policeWarning}"
                               onLabel="开启"
                               offLabel="关闭" disabled="#{firstPartyTagInfoBean.isView()}">
                </p:inputSwitch>
            </div>
            <div class="ui-g-2">银行(含信用卡)</div>
            <div class="ui-g-10">
                <p:selectManyButton value="#{firstPartyTagInfoBean.$.applyCondition.blackListCondition.bank}"
                                    disabled="#{firstPartyTagInfoBean.isView()}">
                    <f:selectItems
                            value="#{firstPartyTagInfoBean.dictionaries[DictionaryCode.BLACK_LIST_TYPE]}"
                            var="dic"
                            itemLabel="#{dic.name}"
                            itemValue="#{dic.value1}"/>
                </p:selectManyButton>
            </div>
            <div class="ui-g-2">持牌网络小额贷</div>
            <div class="ui-g-10">
                <p:selectManyButton value="#{firstPartyTagInfoBean.$.applyCondition.blackListCondition.networkPdl}"
                                    disabled="#{firstPartyTagInfoBean.isView()}">
                    <f:selectItems
                            value="#{firstPartyTagInfoBean.dictionaries[DictionaryCode.BLACK_LIST_TYPE]}"
                            var="dic"
                            itemLabel="#{dic.name}"
                            itemValue="#{dic.value1}"/>
                </p:selectManyButton>
            </div>
            <div class="ui-g-2">持牌小额贷</div>
            <div class="ui-g-10">
                <p:selectManyButton value="#{firstPartyTagInfoBean.$.applyCondition.blackListCondition.pdl}"
                                    disabled="#{firstPartyTagInfoBean.isView()}">
                    <f:selectItems
                            value="#{firstPartyTagInfoBean.dictionaries[DictionaryCode.BLACK_LIST_TYPE]}"
                            var="dic"
                            itemLabel="#{dic.name}"
                            itemValue="#{dic.value1}"/>
                </p:selectManyButton>
            </div>
            <div class="ui-g-2">持牌消费金融</div>
            <div class="ui-g-10">
                <p:selectManyButton value="#{firstPartyTagInfoBean.$.applyCondition.blackListCondition.consumerFinance}"
                                    disabled="#{firstPartyTagInfoBean.isView()}">
                    <f:selectItems
                            value="#{firstPartyTagInfoBean.dictionaries[DictionaryCode.BLACK_LIST_TYPE]}"
                            var="dic"
                            itemLabel="#{dic.name}"
                            itemValue="#{dic.value1}"/>
                </p:selectManyButton>
            </div>
            <div class="ui-g-2">持牌融资租赁</div>
            <div class="ui-g-10">
                <p:selectManyButton value="#{firstPartyTagInfoBean.$.applyCondition.blackListCondition.financeLease}"
                                    disabled="#{firstPartyTagInfoBean.isView()}">
                    <f:selectItems
                            value="#{firstPartyTagInfoBean.dictionaries[DictionaryCode.BLACK_LIST_TYPE]}"
                            var="dic"
                            itemLabel="#{dic.name}"
                            itemValue="#{dic.value1}"/>
                </p:selectManyButton>
            </div>
            <div class="ui-g-2">持牌汽车金融</div>
            <div class="ui-g-10">
                <p:selectManyButton value="#{firstPartyTagInfoBean.$.applyCondition.blackListCondition.carFinance}"
                                    disabled="#{firstPartyTagInfoBean.isView()}">
                    <f:selectItems
                            value="#{firstPartyTagInfoBean.dictionaries[DictionaryCode.BLACK_LIST_TYPE]}"
                            var="dic"
                            itemLabel="#{dic.name}"
                            itemValue="#{dic.value1}"/>
                </p:selectManyButton>
            </div>
            <div class="ui-g-2">其他</div>
            <div class="ui-g-10">
                <p:selectManyButton value="#{firstPartyTagInfoBean.$.applyCondition.blackListCondition.other}"
                                    disabled="#{firstPartyTagInfoBean.isView()}">
                    <f:selectItems
                            value="#{firstPartyTagInfoBean.dictionaries[DictionaryCode.BLACK_LIST_TYPE]}"
                            var="dic"
                            itemLabel="#{dic.name}"
                            itemValue="#{dic.value1}"/>
                </p:selectManyButton>
            </div>
            <div class="ui-g-12"><h3><b>多头信息过滤</b></h3></div>
            <div class="ui-g-2">多头(7天)</div>
            <div class="ui-g-4">
                <p:inputText value="#{firstPartyTagInfoBean.$.applyCondition.longLoanCondition.longLoan7d}"
                             disabled="#{firstPartyTagInfoBean.isView()}">
                    <p:keyFilter regEx="/[\d]/"/>
                </p:inputText>
            </div>
            <div class="ui-g-2">多头(15天)</div>
            <div class="ui-g-4">
                <p:inputText value="#{firstPartyTagInfoBean.$.applyCondition.longLoanCondition.longLoan15d}"
                             disabled="#{firstPartyTagInfoBean.isView()}">
                    <p:keyFilter regEx="/[\d]/"/>
                </p:inputText>
            </div>
            <div class="ui-g-2">多头(1月)</div>
            <div class="ui-g-4">
                <p:inputText value="#{firstPartyTagInfoBean.$.applyCondition.longLoanCondition.longLoan1m}"
                             disabled="#{firstPartyTagInfoBean.isView()}">
                    <p:keyFilter regEx="/[\d]/"/>
                </p:inputText>
            </div>
            <div class="ui-g-2">多头(3月)</div>
            <div class="ui-g-4">
                <p:inputText value="#{firstPartyTagInfoBean.$.applyCondition.longLoanCondition.longLoan3m}"
                             disabled="#{firstPartyTagInfoBean.isView()}">
                    <p:keyFilter regEx="/[\d]/"/>
                </p:inputText>
            </div>
            <div class="ui-g-2">多头(6月)</div>
            <div class="ui-g-4">
                <p:inputText value="#{firstPartyTagInfoBean.$.applyCondition.longLoanCondition.longLoan6m}"
                             disabled="#{firstPartyTagInfoBean.isView()}">
                    <p:keyFilter regEx="/[\d]/"/>
                </p:inputText>
            </div>
            <div class="ui-g-2">多头(12月)</div>
            <div class="ui-g-4">
                <p:inputText value="#{firstPartyTagInfoBean.$.applyCondition.longLoanCondition.longLoan12m}"
                             disabled="#{firstPartyTagInfoBean.isView()}">
                    <p:keyFilter regEx="/[\d]/"/>
                </p:inputText>
            </div>
        </div>
    </div>
</ui:composition>




